<template>
    <div class="titlewhite"></div>
     
    <!--  <div v-for="qwe in dataList" :key="qwe.filmId">
          <div class="newImg" @click="changeFilmDetail(qwe.filmId)">
            <img :src="qwe.data.shareLogoPicAddress">
          </div>
        <div class="newImg">
            <img src="img/new2.jpg">
        </div>
        <div class="newImg">
            <img src="img/new3.jpg">
        </div>
        <div class="newImg">
            <img src="img/new4.jpg">
        </div>
        <div class="newImg">
            <img src="img/new5.jpg">
        </div>
        <div class="newImg">
            <img src="img/new6.jpg">
        </div>
        <div class="newImg">
            <img src="img/new7.jpg">
        </div>
        <div class="newImg">
            <img src="img/new8.jpg">
        </div>
    </div> -->
<div v-html="content "   @click="changeFilmDetail" >
    
</div>
 
<!-- <div v-html="content in dataList" :key="content.content"  @click="changeFilmDetail" >
<div class="newImg" @click="changeFilmDetail(qwe.filmId)">
  <img :src="qwe.data.shareLogoPicAddress">
</div> -->
    <div class="footwhite" ></div>
 
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import { getZiXun } from "../api/product";
export default {

    name: 'HomeView',
    components: {
        HelloWorld
    },
    data() {
        return {
            dataList: [],
            content:[]
        };
    },
    created() {
        getZiXun().then((res) => {
            // console.log(res);
          this.dataList = res.data.data.data;
          this.content = res.data.data.data.content

            console.log(res.data.data.data)
   
            //    this.dataList = res.data.data.films;                   
        })
    },
    methods: {
        changeFilmDetail(code) {
            // this.$router.push("/detail");
            this.$router.push({
                name: "detail",
                query: {
                    eee: code
                }
            })
        },

        //拼接名字方法
        // getActorsName(actorsList) {
        //     return actorsList.map(item => item.name).join(' ')
        // },
    },
}
</script>
